<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1{
            width: 240px;
            height: 130px;
            background: url(img/index.png) no-repeat;
            /* background-position: 背景图片定位  
            有两个参数   第一个参数是横向位置  第二个是纵向 */
            background-position: 0px -220px;
        }
        .div2{
            width: 45px;
            height: 45px;
            background: url(img/index.png) no-repeat;
            background-position: -190px -65px;
        }
       
    </style>
</head>
<body>
    <div class="div1"></div>
    <div class="div2"></div>
</body>
</html>